package com.dcits.electronic_account;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ServletComponentScan
@EnableWebMvc
@EnableAsync
@EnableScheduling
@MapperScan("com.dcits.electronic_account.mapper")
@EnableTransactionManagement
@Slf4j
//@ComponentScan(basePackages = {"com.dcits.electronic_account.service", "com.dcits.electronic_account.utils", "com.dcits.electronic_account.controller"})


public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info("--项目启动成功--");
    }

}
